home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / ASAP / menuitem.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-09  |  1.5 KB  |  37 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * AMenuItem wrapper class                                                   *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_AMenuItem_H
  12. #define ASAP_AMenuItem_H
  13.  
  14. extern "C"
  15. {
  16.  #include <Proto/GadTools.h>
  17. }
  18.  
  19. class AMenuItem : public MenuItem
  20. {
  21.  public:
  22.  inline static BOOL LayoutMenuItems(MenuItem *firstitem, APTR vi, Tag tag1,  ...);
  23.  inline static BOOL LayoutMenuItemsA(MenuItem *firstitem, APTR vi, TagItem * taglist);
  24. };
  25. //----------------------------------------------------------------------------
  26. BOOL AMenuItem::LayoutMenuItems (MenuItem *firstitem, APTR vi, Tag tag1,  ...)
  27. {
  28.  return ::LayoutMenuItemsA(firstitem, vi, (TagItem *) &tag1);
  29. }
  30. //----------------------------------------------------------------------------
  31. BOOL AMenuItem::LayoutMenuItemsA (MenuItem *firstitem, APTR vi, TagItem * taglist)
  32. {
  33.  return ::LayoutMenuItemsA(firstitem, vi, taglist);
  34. }
  35.  
  36. #endif
  37.